Telegram Group & Telegram Channel
8. Program to Find Simple Interest and Compound Interest.

import java.lang.*;
import java.util.Scanner;

class CalculateInterest
{
public static void main(String[] args)
{
double p, n, r, si, ci;

Scanner s = new Scanner(System.in);

System.out.print("Enter the amount : ");
p = s.nextDouble();

System.out.print("Enter the No.of years : ");
n = s.nextDouble();

System.out.print("Enter the Rate of interest : ");
r = s.nextDouble();

si = (p * n * r) / 100;
ci = p * Math.pow(1.0 + r / 100.0, n) - p;

System.out.println("\nAmount : " + p);
System.out.println("No. of years : " + n);
System.out.println("Rate of interest : " + r);
System.out.println("Simple Interest : " + si);
System.out.println("Compound Interest : " + ci);
}
}

@java_codings



tg-me.com/java_codings/12
Create:
Last Update:

8. Program to Find Simple Interest and Compound Interest.

import java.lang.*;
import java.util.Scanner;

class CalculateInterest
{
public static void main(String[] args)
{
double p, n, r, si, ci;

Scanner s = new Scanner(System.in);

System.out.print("Enter the amount : ");
p = s.nextDouble();

System.out.print("Enter the No.of years : ");
n = s.nextDouble();

System.out.print("Enter the Rate of interest : ");
r = s.nextDouble();

si = (p * n * r) / 100;
ci = p * Math.pow(1.0 + r / 100.0, n) - p;

System.out.println("\nAmount : " + p);
System.out.println("No. of years : " + n);
System.out.println("Rate of interest : " + r);
System.out.println("Simple Interest : " + si);
System.out.println("Compound Interest : " + ci);
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/12

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

How to Invest in Bitcoin?

Like a stock, you can buy and hold Bitcoin as an investment. You can even now do so in special retirement accounts called Bitcoin IRAs. No matter where you choose to hold your Bitcoin, people’s philosophies on how to invest it vary: Some buy and hold long term, some buy and aim to sell after a price rally, and others bet on its price decreasing. Bitcoin’s price over time has experienced big price swings, going as low as $5,165 and as high as $28,990 in 2020 alone. β€œI think in some places, people might be using Bitcoin to pay for things, but the truth is that it’s an asset that looks like it’s going to be increasing in value relatively quickly for some time,” Marquez says. β€œSo why would you sell something that’s going to be worth so much more next year than it is today? The majority of people that hold it are long-term investors.”

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

Advance Java ‍ from kr


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA